<?php

namespace app\services;

use plugin\admin\app\model\ExpressCompany;

class ExpressService
{
    public static function list()
    {
        $list = ExpressCompany::select(['id', 'express_name', 'thumb'])->where('is_enable', 1)->orderBy('sort')->get()->toArray();

        foreach ($list as $key=>$item) {
            $list[$key]['thumb'] = full_url($item['thumb']);
        }

        return $list;
    }
}